<style>
    .buttonStyle{ width: 80px; height: 30px ;letter-spacing: 1px;}
</style>
<div id="main-content">
    <div id="main" class="main">
        <div class="user-hd">
            <h2>2016影院管理>>{$page_title}</h2>
        </div>
        <div class="clearfix searchspin">
            <div>总结算次数：<php>echo count($result['list']);</php> 次 <span style="float: right"><input type="button" class="buttonStyle" value="返回" onclick="goBack()"></span></div>
            <div style="margin-bottom: 10px;">实收总金额：{$result.money_really_total} 元</div>
            <dl>
                <dt>筛选条件:</dt>
                <dd>
                    <form action="/Admin/BillingVideoPlay/cinemaBalance" method="get" id="searchForm">
                        结算时间：<input type="text" name="start_time" id="create_time_start" placeholder="开始时间" value="{:I('get.start_time')}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'create_time_end\')||\'%y-%M-%d\'}'})"</literal> readonly="readonly" size="30" style="width: 90px;"/>
                        <input type="text" name="end_time" id="create_time_end" placeholder="结束时间" value="{:I('get.end_time')}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({minDate:'#F{$dp.$D(\'create_time_start\')}',maxDate:'%y-%M-%d'})"</literal> readonly="readonly" size="30" style="width: 90px;" />
                        <a class="sblue-btn" style="height:28px;width:68px;cursor: pointer" onclick="resetButton()">清空 </a>
                        <input type="hidden" class="sblue-btn" name="hostName" value="{:I('get.hostName')}">
                        <input type="submit" class="sblue-btn" value="检索">
                        <input type="hidden"  value="{:I('get.fid')}" name="fid">
                        <div class="clear"></div>
                    </form>
                </dd>
            </dl>
        <div><a href="{:U('noBalance')}?fid={:I('get.fid')}" style="color: #0097FF">未结算明细</a></div>
        </div>
        <div class="spin-cont">
            <table>
                <tr>
                    <th style="width: 160px;">结算时间</th>
                    <th  style="width: 160px;">结算流水号</th>
                    <th style="width: 130px;">结算金额</th>
                    <th style="width: 130px;">实收金额</th>
                    <th style="width: 130px;">结算方式</th>
                    <th style="width: 130px;">审核人</th>
                    <th style="width: 130px;">结算状态</th>
                    <th style="width: 150px;">操作</th>
                </tr>
                <volist name="result['list']" id="vo">
                    <tr>
                        <td>{$vo.end_time|date='Y-m-d',###}</td>
                        <td>{$vo.bill_sn}</td>
                        <td>{$vo.money_total}</td>
                        <td>{$vo.money_really}</td>
                        <td>{$vo.payfor_type}</td>
                        <td>{$vo.verifier}</td>
                        <td>{$vo.statusWord}</td>
                        <td>
                                <a href="{:U('cinemaDetails')}?id={$vo.id}">计费详情</a>
                                <if condition="$vo['status'] eq 1">
                                    <a href="{:U('cinemaAudit')}?id={$vo.id}">结算审核</a>
                                </if>
                        </td>
                    </tr>
                </volist>
                <empty name="result['list']">
                    <tr>
                        <td colspan="8">暂时没有内容...</td>
                    </tr>
                </empty>
            </table>
            <div class="page txt-center">
                {$result.page}
            </div>
        </div>
    </div>
</div>
<script>
    function resetButton(){
        $('#create_time_start').val('');
        $('#create_time_end').val('');
        $('#searchForm').submit();
    }
    function goBack(){
        var url="{:U('cinemaList')}";
        window.open(url,'_self');
    }
</script>